//
//  Utility.h
//  YuchBox
//
//  Created by Ivan on 11-10-17.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#import  "Gzip.h"
#import  "TTLog.h"

#define UTIL_IMPLODE(nsstring, separater)   [nsstring componentsJoinedByString:separater]
#define UTIL_IMPLODE_SEMICO(nsstring)       UTIL_IMPLODE(nsstring, @";")
#define UTIL_TRIM(nsstring)                 UTIL_TRIM_2(UTIL_TRIM_1(nsstring))

#define UTIL_TRIM_1(nsstring)               [nsstring stringByReplacingOccurrencesOfString:@" " withString:@""]
#define UTIL_TRIM_2(nsstring)               [nsstring stringByReplacingOccurrencesOfString:@"\r\n" withString:@""]


@interface Utility : NSObject
+ (NSUInteger)getJavaStringHashCode:(NSString *)string;
// UI
+ (void)hideView:(UIView *)view atTag:(NSInteger)tag isHidden:(BOOL)isHidden;
@end
